Removes sending of query with open and execute