Introduced query part names as constants in Query class
Improved UniqueRecordValidator by giving information which unique key constraint was violated