fix database.yml permissions