Saving data on ledger


i want to know what should i do if my webapplication which is lined to the a node , i want to save data on my node , and other nodes can request my node to get info for example : i will save a cheque book , and other nodes will contact me to check if the cheque book serial is already exist , how could i implement this requirment in corda ?