reorganize libs and added nedb