downloadDB, writeDB, and updateUi do as they name say