Proper search logic
Move db work off UI thread