fix database.yml to dev/prod access