Plan to use a database abstraction class for search and queries
Added some additional functions for the DB to manage