Fixed templates for deployment
Added uniqueness for FK constraints and triggers