updated mysql structure