ResultDAO class and implementation