change sql and move to tomcat