Fix bug in listing tables for SQLite databases

Added SQLite-specific code for listing tables.