working on postgres connection