parse connection query string into array