Adds mongoose to connect to the database.