You will need to add components on your page to display the retrieved data. See the tutorial How to Create a Custom Form & Connect It to a Database for step-by-step explanation.
Another good tutorial is How to Use Code to Let Your Users Search a Collection .
Have fun,
Yisrael