postgresql update returning old value