Fix postgres migration