logs absence times to database