Updated the usage of the manageDB