Changed ListDB sql operations to fix problem with quotation marks and apostrophies.