Added check for current category before getting child data to improve speed.

CRLF changed to LF
Added DB indexes to OC URL table. REF: #2120