Add index for user_id