Events script datetime update

Better date/time parsing for event expire time (when the event should be
removed from the database). Also, updated database event table to store
int for time instead of datetime string.