fix template bug. database.yml always empty 'host' field.
add dbname parameter for database.yml