This will calculate driving distance using google api and will write to database