removed duplicate
gen function split changed to option type split
insert split + moved sql functions
exits
check if enough values supplied to insert without error
insert functional