by HJWUCGA INC..
Ken,
As far as the docs is concerned, you could use phpref and run it against the codebase and get a "javadocs-like" documentation.
http://phpxref.sourceforge.net/
As for mapping the relationships a schema tool such as MySQLWorkbench or SQLyog could do the trick