Updated clean method to use CI db->escape so connection type does not matter
Updated isCommandLine to use CI version
Updated escape to escap_str
Updated marks controller for adding a mark to apply default smart label if a match is found