Modification to users,codes tables and rewrite part of codes_controller

Add column ivle to users
Add column user_id to codes
Link a user to the new code entry in codes_controller