adding query file, moving script file