Added support for the SQLite-specific "synchronous writes" and explicitly enabled foreign key support for SQLite DBs.