Support for (simple) concurrent access to the database

Signed-off-by: Laurent Fazio <laurent.fazio@la-fenouillette.fr>