create schemes for mongoose if mongo db is connected