add record to database
saving file, but still with wrong name
add new item
TODO:
-fix problem: syntaxerror unexpected token o json.parse
- add type selector to dialog