chore: migrate CLI tests to use dbfake
#10500
+78
−120
Merged
dbfake
#10500