fix nedb library
fix require not defined