Middleware for Django, to work with multi database connection using User model.