connection with postgres working