Added new argument to save the database in nicely formatted json.