Move the GetUniqueEntriesOrGuidsAndSourceTypes method to the SAI-Editor-Manager (from the MainForm class)
Fix a newly introduced error where executing a generated sql would cause an exception to be thrown as the file was in use