I made a plugin for A6 to use SQLite but never released it to the community. It's not easy to find SQL failures. If your sql statement is wrong it shows only a dialog with "error in Plugin DLL".
@Bloodline: Yes, this could be possible but I don't needed it so far.
I don't used SQLite directly. I used a wrapper class named "dsqlxprez" for faster development. http://www.codeproject.com/database/vmembedded_db_cpp.asp There is only a copyright of the author without a license on top of the files but at the end of the webpage are some comments with one who was asked for a license. He means you can use any license you want.