Some changes to work more nicely with Django. Using pypyodbc instead of pyodbc to avoid segfaults for now.