Created the mongodb connection with jaydata

made ./lib/db.js