A database connect, there updated both queries (different statement, and regardless of order), after completing the implementation, not close, will have an extension called s3db-journal of the (temporary) file, if the use of the connect again the update, then generate "unable to open database file" exception.
Therefore, after completing the implementation of a connect or close, or deal with their own temporary files.