Added persistence layer in nedb, not working as of now.