Cosmetic
Keep ibconnection open between operations. Use built in insert/update/delete sql generation from select query instead of turbobird code.
Use enumeration instead of string which is hard to check
Be more conservative when detecting comments. Otherwise SQL like CREATE EXCEPTION CUSTOMER_CHECK 'Overdue balance -- can not ship.'; cannot be processed.