Good effort there blade at least your continuing to try and learn.
Id suggest not doing this
SELECT * FROM users
especially from a table like users which is quite large. No need.
SELECT userid,username,duties FROM users
will suffice as that's all the info that you need.
Also duties is a new field which you didnt mention :P