insert log summary into mysql