David or rather Prince Charming was looking for Snow in the scene in the woods. When David remembers the memories with Archie’s help, he remembers finding Snow White and her not remembering him and wanting to kill the EQ. That’s the part he was “acting out” while dazed in the woods. Yes he ran into MM then, but seeing as he wasn’t quite there it’s not surprising he didn’t recognize her.