gs.sql executes against the database directly. This risks system integrity.
Do not use
gs.sql in code. It interacts and alters the database directly, potentially causing significant damage to the integrity of the system. Remove all references, and use GlideRecord instead.
Time to fix