update:
  add try catch for all file system actions
  write user_model.php
  write hdfs_model.php
  write history_model.php
  update sql file