make postgres orm update work