code cleanup. can now also annotate exception factory classes with @DatabaseConstraint