Fixed conditional db downloading.