switched model to use :memory DB