read attendance from DB