added node generator to mongoDB
changed db structure