added script to generate dbtool upgrade command