Change the way of updating class definition table

 * Append all occurrence of uploading classes
 * Change class search param to class_name

Change-Id: Iefe7b48e107921a4869f2e6456ae854c2b866d1d
Merge "Change the way of updating class definition table"