Add query to retrieve email addresses by barcode

Just a useful query that I've had to write a couple times, so I figured I'd save it.  Note that I'm just putting this in the git repository for convenience and will not affect the live or development systems, so it should be safe to merge (as long as there are no comments or suggestions about the actual code itself).