Fix some bugs in sql_django container