creating database connection in production environment