linked database to show data on main page