Fix query db will caused crash issue. Roll back for cancel static class side effect