All external entry points into the database must be locked.
If data for tx is not present, return error.
Update test to new API.