Updating doc and addind database file