transition to postgres working