use a database view for the search