fix tests building from 166a546078426798175bfae320dda2ed1f36b0d0
Add ExistsTxSha to db interface.

This function may be used to check for existance of a tx sha without having to
fetch the data from the db.