[proj] from PHOAS terms to DB terms