little changes to get postgres working