Bug fix: #4375 Group two DB, one's name is the prefix of the other one.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
Merge pull request #1151 from Tithugues/b4375_4_1

Bug fix: #4375 Group two DB, one's name is the prefix of the other one.