db: add config key with same value to multiple versions

Adds a general function that can add a configuration key with same value
to multiple versions

Change-Id: I432038577c1e695d2821471a607ab842ea64c97b
Signed-off-by: Eli Mesika <emesika@redhat.com>