Admin dashboard fix for empty tables