Included constraints to optimize inserts and queries
Added constraint exclusion setting