Config fixes for database and deploy