Demographics sql upgrade script