query methods and upload data