Added option to update location in database.