Group two databases, when one's name is the prefix of the second one.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
Update ChangeLog.

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

Group two databases, when one's name is the prefix of the second one.