DB/Misc: Fix db startup errors