Load Document and most of queries