I have an doubt about an same database usage at two places

I have a doubt that here I am making a file uploading website to store data. So the stored data should be visible at both the home and file page from the same database how is it possible? If yes ten how And can someone please tell me the steps also?