TODO, refactor enum to ID mapping logic to be able to reuse it.
Unit test for DB storage of AccountType.