fixed mysql creation bug