[databases][api] Fix paths anonymization

Take into account v1 and v2 databases
1 job for implement_db_v2 in 16 minutes and 16 seconds (queued for 4 seconds)
Status Job ID Name Coverage
  Build
failed #222388
docker-build
build_linux_36

00:16:16

54.0%
 
Name Stage Failure
failed
build_linux_36 Build
TOTAL                                                                     13248   6101    54%
----------------------------------------------------------------------
Ran 218 tests in 108.789s

FAILED (SKIP=14, errors=2)
Coverage.py warning: Module beat.cmdline was previously imported, but not measured (module-not-measured)
Coverage.py warning: No data was collected. (no-data-collected)
Cleaning up file based variables
ERROR: Job failed: exit status 1