Use psql --command instead of parsing stdout
Make {database,role}_check functions consistent with existing style
Merge pull request #6 from rob-b/master

Use psql --command instead of parsing stdout