Modified scripts to do most of the commonalities (insert, update, delete) in one script. I left the getID and getNext alone to maintain type and keep inline with the DB structure. I hope this doesn't cause a problem for anyone...