Added code to ensure that triggers to enforce constraints exist as soon as the connection is established to the MySQL server.