Added a selection for code that should only be executed if a match was found in the database