Changed sqlite3 database to json file