switching to between for sqlite query because of too manuy variable problem on windows machine.