initial doattends model and defined insert function
defined view function for doattends model
defined view_where and select function for doattends model