added support for database.yml and removed hard-coded database
parameters