initial support for storing task logs in db