Tried to speed up endElement

reduce the number of calls of equalsIgnoreCase. reduce the number of
call to printStackTrace. Not much impact is seen on the overall runing
time.
Bulk insert refinement

propagate exception out of bulk insertion.
Delete all empty transaction after insertion.