Defined max_allowed_packet.
Introduced RecordExceptions.
Chunk long queries.
Merge branch 'develop-max_allowed_packet'
Removed max_allowed_packet and performance upgrades.