Add additional buffering to recreate lost functionality upgrading
from Sqlite2 to Sqlite3 extension.