Forward-declaring Database<> isn't enough in log_lookup.h.

The inline ```LogLookup<>::GetEntry``` method uses members of ```Database<>```, so a forward declaration of ```Database<>``` is not sufficient.