Pulling details on detail pages from database.