add the second version of sqlpreview