fixing bugs from my first run through on clsql-postgresql-socket3