changed to in memory database