more pg8000 fixes