changing mysql call to xoopsDB call