fix mysql syntax error for insertRemove