database change to data dir
update db & attendace