made Todo to work with sqlite db.