this fix makes the application more resilient to communication failure with WU gh-55
also some fixes to the build for SQLite