Allow overriding of the db connection
FTS-85: Snapshot logic up to date with FTS3