with database update