Add support for save() directory selection

Hi,

about everything is in the title :)  Just needed this to write my cache DB in the cache directory. Thought I would contribute this back.

Thanks for extending this with save() in the first place.
Regards,
--t