fix sql exception when adding a new token
Merge pull request #27 from Remo/date-used

fix sql exception when adding a new token