Allow for IDatabase to be used as type hints for DatabaseBase|DBConnRef

* Use this in LogEntry to avoid needless type errors

Change-Id: I8644b35b0d9cd171243dd28de52e94ef39d361a7