[DBClientConfig] Use functions to shorten conditions of if statements