Make the DB cursor() compatible with django debug toolbar