removed duplicate sql query, changed url to bitpay.com