fail if database can't be opened