Save a select query in binaries scan by changing the insert query.