Fix for SQLite.
Fix for Bitcoin 0.8 blockfiles in datadir with defined chain.