fix sql urls; add waiting step in app-scale worflow;remove reconfigure-tomcat step from rebuild-app workflow