fixed bug in table primary index discovery for SQLite