mods of #477 fixed typos

added a space :)
and changed the variable "database" to "dbname" to conform with the examples around that