More fixes, enable database lookups in poet.