Added looping for queries, need commandline params now (fake key ok for now)