updated updatescript so sql queries can be displayed
renamed some methods for better consistency