New method for running select-query, previous methods are now depricated and will be deleted soon