Creating permalinks table and import script.