fix SQL errors for ForeignDBs: a trailing comma was left in the values list

When you had a ForeignDB setting and you tried to add a customer, a SQL error was shown as there was a trailing comma in the values list ( "INSERT INTO ... () VALUES (?,?,?,)")