minor bug fix - track it

Using db query to get Num_Lors instead of SharedPref