Fix DatabaseTasks db configuration on database spec change