Written code to make updating node sql file part of the process