implemented performance indicator
changed Order by clause to oder by ID
added check for phrases length, added set for max value
removed forgotten debug output