add db.js(it's a kind of abstract function) & db-social.js (functions for recover DB)