Script for conversion of db; start of fixes brought on by changes to the db.