Implemented CRUD functions in Deposit class, and partially-implemented
corresponding methods in the controller.