defined update and select_where function for doattends model
defined delete function for doattends model