Dynamic Update Query In Postgresql