update database and filestorage