cc-d: removed site URL and sub prefix from all db permalinks