sql gedoe assignments

thx to prikkel