Bitcoin Class Fix and Minor addition to SQL

Great work on the project here are a few fixes i had to apply to get the project to work correctly