Changed statistics adapter to CursorAdapter
Optimized adapter