add doc_id output
fixed a bug
remove db part
update rails model
update term_weighting.py
update db