move file and query operation to backend service