establish database in production mode