implemented DB access for get and set.
Implemented DB access for mongo.