Fixed DB again2

Signed-off-by: Julien Bonvarlet <jbonva@gmail.com>