Moved linkscc SQL details into LinkCache for cleaner code. Also cleaned up LinkCache...