Implementing functions to Mongo data store.