Added db.json
Added cache.
Rename bad var