update database, tambah tabel log