made changes for mongoose-multitenant