restore from db.json