This function frees resources used by the database interface or DLL. You must not make any other library calls or execute
any embedded SQL statements after db_fini is called. If an error occurs during processing, the error code is set in SQLCA
and the function returns 0. If there are no errors, a non-zero value is returned.
You need to call db_fini once for each SQLCA being used.
Note that db_fini must not be called directly or indirectly from the Windows DllMain function. The calls that can be made
from DllMain are limited, and in particular attempting to communicate with other threads (which db_fini may do) can cause
the application to hang.
For information about using db_init in UltraLite applications, see db_fini method.