add for_if
impl iterator size
impl sql done