if server is run with --mock-db argument, mongoose will be mocked
by mockgoose