Update database add insert method.
Add statistics for days.