Completed all main functions from MongoAdapter