postgresql update returning previous value