Update find_by_user_id to use an integer