Task, sqlite functions