Added helper method getMatches.

Created a helper method to retrieve classes added to database schema, useful for operations like database truncate.