Isolate test databases from dev to prevent migration reverts dropping tables
Point tests at a dedicated SQLite file (tmp/test.sqlite3) and a
separate ClickHouse database (favs_test) so the test runner's
migrate/revert cycle never touches the dev database.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>