updated rds endpoint mapping code