setup database for production