Amazon gains wholesale pharmacy licenses