Moved db_django to a module.
Fixed some issues with the django backend.
Added tests for django orm backend.