Added module database to handling direclty data in mongoDB