(refactor) Connect server to mongo database.  Closes #32