Fixed writing ddb internal metrics and prioritized the process.