move mongodb operation to dbs.js file and then can been accessed by routes.js