SqliteTableModel: Don't add LIMIT to query if it is a PRAGMA or EXPLAIN

Don't add a "LIMIT x,y" at the end of the query in fetchData() when it
is a PRAGMA or EXPLAIN statement. This way correct SQL code is produced
and it also fixes an endless loop when the statement didn't end in a
semicolon.