get the raw data for mysql