Added the first version of the method that can be used to search the DB programatically. Making it public for now.