Added mongoose and connection to mongodb.