Updated task interface with new DB API.