user_id build in queries and ctrls