fixed typos

added a space :)
and changed the variable "database" to "dbname" to conform with the examples around that
Merge pull request #480 from phpmoli/patch-3

mods of #477 fixed typos