added code to test if a time entries already id exists before adding.