data.json creation by default

- Create a database file  with a default contact if it doesn't exist
- Minor optimization