Update SearchType.java

Updated database syntax for for() loop