Connection to production database
Fix
Connect to database only when it is necessary