Add link between index and SQL