adding base controller and model with crud