add dirty db close function which closes file handles.

I made the service by the etherpad.
So I custermized etherpad to each pad use dirty db.
Each pad is used to separate dirty db, dirty db needed to close.
So close function has been added to dirty db.