added postToDatabase method to parseDataHelper