added diagnostic model and database
added diagnostic controller and view
added survey controller and view