fix bugs

rename compile_context to _compile_context in BaseQuery
fix bug for Update