Removing unnecessary databases