fix naming of the mongodb gateway test and work out some more of the ORM