This sounds roughly on-track, but I agree with GP; Postgres would probably be better (also has great JSON(B) support).