Insert user.id to database (code)

@bjamaspi
You should better open your own POST and describe your problematic situation, instead of bumping up old posts.