working scheduler: dont forget to clear db