Set up database connection for production