Use postgresql extensions instead of raw sql scripts