adds all necessary CRUD functionality for all objects.