Thanks to you both for your help on this. Your solution worked, it was a Berkley DB. Now using the tie method but had to add O_RDONLY on the line suggested as well, then make the db file 0644. All the best Dan