DB/Misc: fix some startup errors