second \n\n check
fix mysql del and add summaries
change sleep to have less cpu usage ondb
add all at once
fix to insert