incomplete json version (did not use sqlite)