Basically I am looking for solution which how to make JavaScript executes the SQL function before executing readfile funtion.
var mysql = require("mysql&