Greatly simplify the amount of code in the SearchFromDatabaseForm form