Normalize isInsertQuery and isUpdateQuery