Handle both RFC-3164 and RFC-5424
Separate table for each month
handling mysql server lost connection