Finishes creating the database and displaying the directions page