small escape fix for modx->db->insert and modx->db->update