added basic functions to save absence into a seperate table