s='select p.id,partno,description,notes, c.name || l.name as location_descriptor, location_id, container_id, datasheet, EXTRACT(EPOCH from now()-reported_missing) as missing_for from parts as p inner join locations as l on p.location_id = l.id inner join containers as c on l.container_id = c.id where p.id = :id;'
s='select p.id,partno,description,notes,EXTRACT(EPOCH from now()-reported_missing) as missing_for, c.name || l.name as location_descriptor, location_id, container_id, datasheet from parts as p inner join locations as l on p.location_id = l.id inner join containers as c on l.container_id = c.id where p.id = :id;'