Fixed updateLatestPostion using the wrong query object to prepare the namedstament