A rudimentary database php class using json files as a backend