Preparing database and configuration for production