Add failure scenarios when url host does not exist, and when database does not exist.