instead of selecting all rows individually, just select *
change caps on query, not completely sure this is necessary