added very simple search result functionality
added getcount() function as well as fixed issue with search SQL