rlm_detail and the processing of logs into SQL