Double-Spending in Conventional Databases and Blockchain Environments