KRACOEUS-7636: Fixing db scripts
Merge pull request #504 from gathreya/fixDb2

KRACOEUS-7636: Fixing db scripts