PHP Class built to handle flat file databases that take JSON as data input