If you know SQL, I put together a Bitcoin database https://www.dolthub.com/repositories/web3/bitcoin that is currently updated till 2013. I have a more optimized database on the way that will be easier to download and work with. If interested, I can help you with the SQL queries.