Added getDataFromSQL