Remove 'host=localhost' from psycopg2 connect string to force socket connection

When you specify a host, psycopg2 will connect to Postgres via a TCP connection (requires un/pw) but if you remove the hostname it uses a socket (passwordless) so it "just works" when run as root (with a standard pg_hba.conf).