scripts for submitting query to GP-DB