More musings on db structure, added mongo wrappers