[REFACTOR] Applyting database exception.