SQL Query after migrating WP from local to on line server