fetch types from database and show it to view via dropdown
combine create and update method and adding delete functionality