#40: Persist requested thread number in the database