1. SQL queries inside a loop, part 2