DB test fixes

--HG--
extra : source : 360c4a5814b8078ec95d4418bef2e3d7d1c3afda