create_tables.sql: Added triggers instead of check constraints (ongoing)