fix database.yml issue