[REFACTOR] Applying database exception instead of runtime exception.
[SUBMODULE] Fixed tests, applying database exception.