SqliteTableModel: Fix invalid SQL syntax if there's already a LIMIT

Fix the syntax of the SQL string generated by fetchData() if there is
already a LIMIT statement at the end of the query. In this case don't
add an additional one. This fixes half of issue #31.