Changed card.publicKey from BLOB to TEXT