db connection bugfix
improve error recovery after curl failed to download content