Fix DB startup errors