improve debug messages
test QDjango::database() before a DB is set
honor FastCGI flag to keep connection open