Configure a separate in-memory database for unit tests

This should hopefully fix travis