Problem when added a new pattern fixed (Matching and storing on the DB)