adding lock
adding db operation by Tx