Hook up the navigation to a database.