Final version of leave and mooc with updated database