Add check for transaction id before calling SQL request
Format condition correctly
Merge pull request #61 from mdietrichc2c/fix-bvr-completion

Add check for transaction id before calling SQL request