Hello Sanjay,
Thank you for your enquiry. Have you tried exporting and importing back the same database? This usually works and in case it doesn't then I would suggest you to try importing latest backup.
Hi, Paul.
Sounds like you're talking about REST API. And that your are overwriting data with older values if B managed to read record before A finished to update it. Classic conflict resolution ...