Automation of hrm_credential.end_date based on deployment setting

Better to bring this into scope inside the class once & then just use db - as currently this repeats in the same class