adding mongoose and connection management
Merge branch 'mongodb'