update database and updated filesystem