Trying to fix MySQL returned data