Do not use cursor if not using db