Do not include shared repositories in updateAdminRights or it can end up filing the role with tons of repos.
Fix sqlite deleteRepository case - Use better error message and log SQL error. Fix #779