Bug #4135 When searching, error "No database selected"