sql generation for postgres in go