revert index.js
fix date being null
fix delete on undefined
separate file for user_info