run query many times if more parameters given using same connection