you can interface with an SQL server on your machine through mIRC with the use of a mIRC SQL DLL.