sql info middleware added