update to database and files