connect to mongo via mongoose + checks
Merge branch 'dev'
added logic to connect to mongodb
added checks