fix attendance counter, fix repeat registrar response, add new database