permlink and sql types update