RDBMS App heavily debugged

All that is required is style review, a heavy mod (or rewrite) of
natural join, and then uncommenting some code in the app and remove
functions of the app.