prepare database settings and gems for production server