Blockchain-integrated code for maintaining and interacting with data in a trusted, distributed database