is it possible to get datas from Mysql Database on MasterClient?

Options
Now Im trying to take Market data from MasterClient on its mysql database.
my problem is the process of obtaining data has a function that only the 'master client' can execute. (because only master client can excute database by local ip..i tried to use masterclient as database server)
So I changed the data to 'object[]' format and handed it over using the 'OnPhotonSerializeView' function.
but it continue to fail by "NullRefrenceException"
I don't know how to deal with it..
thanks.