Removed some db = null lines from the base collection class