Remove unused methods of Database<>.

Also make two internal methods protected.
Update LogLookup<> through a callback on Database<>.