fix a bug in HistoryDAO::create()
transactionday can write new data in history table.

Signed-off-by: Yuan Cao <mail@caoyuan.me>