Added rules to mysql script