move function  db_json_sync() to load-functions.php