[v6r10] DBs definition: portings from integration

These are simple porting from the integration branch of what was committed in https://github.com/DIRACGrid/DIRAC/pull/1638 and https://github.com/DIRACGrid/DIRAC/pull/1478

@ltomassetti