Move custom profile field data to its own table

I could not find any use for the theme query that was in loadmember other than loading in the custom profile data from themes, so the theme query was replace and not appended to. If we find some missing data it can be addressed, but all other areas seemed to load (and correctly) the data from the themes table.

Also I add in identifier support to the upgrade_query (for things like substring etc) ... ideally the upgrade querys would all be updated to have this first i.e. upgrade_query('', string) but for now I simply appended it to the params to avoid breaking anything and not knowing if this change would be acceptable.  If this is acceptable, for consistency, I feel it should be rearranged to match the smcfunc syntax