Fix up sql join and display of meta-tags