CRUD and Permission functions completed