added database upgrade script