DB/Misc: Fix some startup errors.