Add nodes to database.
Import function for json files