first submit of php backend rest query scripts