refactor to use the database-specific quoting methods instead of a hardcoded standard version.
rename a variable to avoid confusion with a similarly-named instance variable on one of the classes used