DB/Conditions: Fix DB startup errors

Thanks @vlad852
Related to d77904e0af2b9a15013efc383