Added db query to demo intead of using my code to create subset