Added upgrade script for version 49