Minor cleanup
Use max_allowed_packet in DBInsert

Use max packet length from MySQL in DBInsert class to know when it is
appropriate to execute the query