for pic detail and update join query