Write a base service to provide some basic CRUD operations.