tredits index select - changed concat on secondary_key - null's caused problems