updated tx for db
updated tx for db