Linked lessons and updated SQL links