removing last of mongodb references