Fixing sql insert clause