An excellent Bitcoin database is Quandl, a search engine for numerical data.The site offers access to several million financial, economic and social datasets, indexing data from multiple sources and allowing users to find and download them in various formats.It works via an API, which can be accessed through packages for multiple programming languages including R, Python, Matlab and Stata.