Clean up postgresql command invocation slightly