drop file ext from query