PHP flat-file database to store data with JSON