Print better message on db errors.