Though I solved the problem by making database an instance variable, there's one thing I'm curious about. If I 'overwrite' a class variable with an instance one (as I did originally), is the class variable recoverable? Will objects created later have the class or the instance variable? Basu -- The ByteBaker : http://www.bytebaker.com