You have to enable manually sqlite/mysql in modules.ini and then make some checks to see if the right module is loaded and call SQL_SetAffinity if SQL_GetAffinity does not returns what you want. Also after SQL_MakeDbTuple you should initiate the connection with SQL_Connect