get postgres working