update with database tables