Thanks for the help,
I did not need open the db as you said as I set it up with with a few tables in app.js file.
I changed my error code to this
err => {
console.log("http fail!")
this.storage.get("corptest").then((value) => {
this.corptest = ("value", JSON.parse(value));
})
}
and everything worked like a charm.