repair a bug in create_code,
change orm models.py.
modified create.js.