code cleanup: index.php no longer has database access routines. all new/update/edit/etc db routines placed into sub-pages.