core: DB fix duplicate prefix upgrade script

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