fixed insert new file query