Added query and browse function

Added query and browse function