using json file instead of sqlite