Allowed program to read the full database and fixed a bug to allow the search to run properly.