adding query for online presence on local table