fix attendance db_merge