DB/Conditions: Fix db error