More exception handling in `get_db`
No need to tag abstracted types