Beginning of MySQL function library