Rough cut of searchability and data model relationships related to custo...

...m attributes.
Need to validate this code. It should join to the custom_attribute_values table to find matches based on the attribute_value column.