[CHORE] Catching db errors