Core/Misc: Fix db startup errors