run queries one by one, rather than all at once, to avoid complaints related to prepared statements