log minute data to mysql