fixed home and category posting population SQL