Introduced nedb + refactoring