changed database.yml to external db again