Changed to use in memory database.