Check for visitor database ready before executing transaction

Check for visitor database ready before executing transaction