Ask yourself why you need to store the data from a mIRC bot in a database? Are you driving a wedpage from this database as well?
If you are, then consider integrating your mIRC script with the website (Web Services anyone?). I did it many years back to integrate a mIRC bots user management feature with the user management system on a website.
In case you don't know what mIRC scripting feature to use, it's sockets.