fixed database in events to make start and end times datetime instead of string