switched from mongoclient to mongoose connection