more bugfixing - task type table is now stored in task database