small fix for sql insert