[core] switch mysql_*() to xoopsDB object method