Set the first part of the sql snippet to 0 if it does not exist.