Use Metatrader with SQL database

Hi Guys,

I was wondering, is there a way to interface MQL4 with a SQL database? for example MySQL or SQLite (not really keen to MSSQL)

Basically what I need to perform is insert and select queries to and from a database