Allow CLI tests to use :memory: db

This significantly increases performance