Set up tasks database