Implemented saving share diff to db