Split out MySQL data to variables