Improved location class, capturing wherever you sent and storing in the database