Save diff to the db

Save the difference to the DB by chunking them.