fixed select queries, can use params now