BS-8394 : Rename startedByDelegate in startedBySubstitute & executedByDelegate in executedBySubstitute

- Fix SQL script for MySQL