Fixed issue with internal check for active transaction.

If the `queueTransaction:withBlock:`-method is executed before an active
database instance is available the `sqlite3_get_autocommit`-function will
fail with `EXC_BAD_ACCESS`.
Migrated the check, delete, and create table structure.