adapted for the changes of the db schema; made files markable as in use
by a task