fixed error with update database and file .cvs