Issue title: SQLite3 Foreign Keys support
 Issue body: For example, `tx_hash`, `block_index`.

 Comments: 
 Comment 0: This'll soon be complete.

{'source': 'GithubIssues', 'repo_name_with_owner': 'CounterpartyXCP/counterparty-lib', 'issue_id': 26832586, 'repo_stars': 266.0}