Fixing bug in CREATE IF NOT EXISTS