BRANCH 4.1:
   updated upgrade script to match code with search_type in search_object table