better error handling on !db conn