I have timer-function. It handles data from sql database every N time (it\'s doesn\'t matter actually what time). The subsequent algorithm does not work. Or I don\'t know how to