fix database.yml generation
added support for server/port/host options