Connected the page to a database