JSON based flat file database system