Make a few pointer members of FileDB<> const.

Also check them for null.