Datetime db script update

Working timestamp addition to database, and working deletion of old
'expired' events.