DB/Misc: Fix some db startup errors