DB: Fix startup errors