Moved mysql triggers