Mapping web pages to database records via link paths