get libpq working