core: Create DB Scripts - incompatible code...

Create DB Scripts - incompatible code breaking dwh cross compatibility

Moving update sequences code to a custom function that can overridden by
the history module.

Change-Id: Ic36b48458b6a924ad62d14666b8d31e53e9854e1
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1026097
Signed-off-by: Eli Mesika <emesika@redhat.com>