change database.yml structure