(Big commit) When searching for a script using its guid and nothing is found, we try to look for the guid's ENTRY (id) script for SAI. The same goes the other way around; searching for an entry and not finding anything, we search for the GUIDS of the source and allow the user to select them
Fix executing revert queries from the form
Fix an issue where the generate sql button and menuitem would be enabled when they shouldn't