separated mongoose specific calls to a custom module