Fix table names query for SQLite PDO adapter