Update Query In Postgresql Using Python