fix db with postgres