Fixed BaseDAOFactory. refs #497