Added some functionality for CRUD operations