for /donateData, returns how many rows were successfully added to the database