Insert JSON into the database so that we can regenerate as required.