Test type 3: Multiple database queries