Database: SqliteDriver::getTables() skips internal tables

See: http://www.sqlite.org/fileformat2.html#intschema
tests: typo and small database tests speed up
Merge pull request #1094 from milo/db-fixes

Small database fixes