Fixed DAOFactory template. refs #499