Initial implementation of search

The query is being run against the items table, but that should be replaced by a proper table with outstanding indexes and search capabilities.