remove deleted shares from the database table oc_share
add comments
clean up oc_share table from files which are no longer exists
catch exception if db query execution fails