saving database.json