first query working and reloading table