Database Integrity: Foreign Key and Check Constraints for MySQL Database