Code for modules to perform more robust quoting of database identifiers