Add exception when db is unbound