Added IF NOT EXISTS

Replaces #641