db host/port variables in database.yml template

- add missing port variable
- change host variable to fetch from @database param hash