listing sale with transaction and update database