Server -> Client -> Server

So, I have a Derma Menu that is client side. When you press a button it runs a Sql Query on the server. How would I do this.

So pretty much…

Server SQL -> Client Button -> Server SQL

Would I use usermessage hooks?
Should I just use a shared file?

I am totally confused :S

Console command to the server which then runs the query would work.

hook a console command serverside then run it on clientside then send a usermessage to the client.