Now queries sql data using loader