Fixed db interface to add records to Mongo