Picard Groups and Brauer Groups of Certain Stacks