Added metrics for JobDAO.

Added metrics and tests for JobDAO.