Revert "Use in-memory database for testing"

This reverts commit 128a0ea0d5f7bf7d717c6682558e328ec321b691.