Remove superflous include.

cf-key uses functions from lastseen, not the DB API directly.
Fix linker errors in unit tests.