Improve support for SQLite in memory database