Fix django's database connection