Add year, month, day to table tacks and counterpart schema test.
This change is to keep uniqueness of tack by db constraints.