remove only when db to remove is defined