Made it so end_time is always after start_time
Migrated from mysql to a postgresql database