Switching from default mongodb driver to mongoose

Added the mongoose module and replaced the default mongodb driver, to
help with modeling and cleaning up code