A MySQL functionality enhancement UDF