attendance class now working with DB, insert and delete