Yes, it's possible, but you need a lot of knowledge about the pawn preprocessor and C/C++ coding. It's not possible to get an direct string from an .amxx file.
Just a question; why don't you use a cvar so the user can hold their own sql database?
__________________
Achievements API - a simple way for you to create your OWN custom achievements!