PDB-341 More code reduction

Removed some extra duplicated code from the v3/facts.clj file and moved the
read/write database tests into the shared http/facts.clj file so that both
v2 and v3 are tested.

Signed-off-by: Ken Barber <ken@bob.sh>