Update Query In Postgresql Using Python For Data