Added db support for shared files so that the infinite update loop
doesn't occur.