Added confirmation dialog to terminate recording

Fixed parallel query issue
Implemented long list tap selection logic,
Tours are now being inserted into the database after the record
termination