Fixed: stripped out old unused search functions, privilege checks and views