Re-write of Ens version of this script that allows more general updates, writing results directly back to the db; if you want to generate SQL for updating the DB off-line, use update_analysis_table.pl