Unique constraints on several fields and now both types are in header, ill improve that later