move query script into standardweb/scripts