changed database.yml hook