Configure database for production