Any chance you can rename the script from 'idm' because this really doesn't compare to iDM. For one thing, iDM uses SQL http://idm-bot.com/idm1.png
That doesn't really even matter. The same thing can be done in an *.ini file and some hash tables. Just because it's in SQL doesn't make it superior.
Just saying.