working urls and validating permalink in admin for products, added permalinks database tables define