batch import and query