fix to get correct origin and dest

change in servlet class to store correct origin and destination in DB