ped sql prototype