fixed syntax errors in postgres create scripts