Fixed broken db (empty dir).