Database class can now save .json files