modified to use django-db-pool