PHP flat file database that sorts in JSON files