Take that Borders! Amazon posts record 2Q sales