script formatted sql for java