Get postgres working