provided the mechanism of searching a pattern (i.e. getting the pattern querying databse etc.)

grouped fonctionnalities into one