fix sql syntax error (while table name has a dash)