I will quickly reexplain how Grover's Algorithm works :
- First you put your whole system in an equal superposition. The means, for example, with 3 qubits, that your system will be in the state : $|\psi\rangle = \frac{1}{\sqrt{8}}|000\rangle+\frac{1}{\sqrt{8}}|001\rangle+\cdots+\frac{1}{\sqrt{8}}|110\rangle+\frac{1}{\sqrt{8}}|111\rangle$. You will assign one of these basis states for each element of your database.
- Then you run the phase-flip oracle gate : $|U_\omega\rangle$
- You also run Grover's diffusion operator : $|U_s\rangle$
- You repeat the two last steps until the complex amplitude of the state that corresponds to the searched element of your database, has a high enough probability to be measured
As you can see you need at least as many basis states as you have elements in your database, because you assign an element of you database to each basis set. But since you system starts in an equal superposition, every basis state is searchable, as is every element of your database as long as you link a basis state to an element of your database.
However, many different questions mix inside yours, for example, if there is more than one correct element, how does the algorithm work ? I hope I could shed some light on the situation !