Added attendance table and made clicking the attendance button update it in database.