fixing bug w database search part 3