Revert "Removed json file logic. Can't properly retrieve data from db yet."

This reverts commit 1773c1744ff5eef2fd6b07d1183aa27f7b1fd48f.