MySQL sync script for Wordpress