Re-factor the MongoDB backend
- Define objects and types with the possibility of adding indexes and object validations.
- Make data model changes easy and efficient.
- Find corner cases.
- DB becoming too big.
- Document grows more than 18 MB.
- Not efficient indexing.
- Multi key indexes.
Migrated from T3555 (view on Phabricator)