[plugin] change mysql_* function to  DB object method
[xoops integration] switch MySQL API from mysql to mysqli