Cleaned up the Postgres driver a lot.