updated sql script(changed mandatory to proirity enum) and sample SQL script. Also included a pretty picture.