wip for adding diffs to the database