add CRUD for metadata