Finshed the units CRUD functions