fix query call for oracle