Fixed update of shares database - grant that shares are removed after removing all of them in the server