Optimization for SQLite firstword select query