Database: fixed adding multiline condition