The role of atomic and molecular data in stellar atmosphere studies: atmospheric structure and chemistry