Add debug bar, Refactor sponsor queries