Declare methods of DbAdapter synchronized but have the error described below when trying starting
two threads in a row. These threads insert data into a table in the database.

The error.
    java.lang.IllegalStateException: attempt to re-open an already-closed object(Tried closing )