Generate string to store in database. Test adding, updating and deleting nodes. Write data to database finished