Made database sync script actually modify the database