Correcting memory leaks - first pass

Some Program O installs on shared web hosting platforms are experiencing
"out of memory" errors. This is an attempt to "plug up" some memory
leaks to prevent this. Action taken:

add mysql_free_result() to all DB calls that fetch rows