MySQL function that explode string and return portion identified by index (positive or negative).