queries fetching data from the last balance