Custom MySql functions to add useful functions to GnuCash