Update Query In Postgresql Using Python To Create