Abstraction for mongo db