Separate snippets and db json
snippet edit
update & delete snippet  api
snippet add()