Title query now uses the Entry class instead of direct SQL.