Fix" Commands of sync" errors in SQL connector

We had a6b588e7 but this was only solving the case of a trailing ;

See merge request !1710
5 jobs for for_testrunner_2 in 0 seconds
Status Job ID Name Coverage
  External
passed SlapOS.Eggs.UnitTest-Master.Python2

00:13:46

passed SlapOS.Eggs.UnitTest-Master.Python3

00:18:22

passed SlapOS.Eggs.UnitTest-Master.Python2

00:13:04

passed SlapOS.Eggs.UnitTest-Master.Python2

00:12:56

passed SlapOS.Eggs.UnitTest-Master.Python3

00:17:42