Fix for bug when storing path of index only hash databases