update database table and info