add delay statistics
modify add query/insert event hour by hour