if refid is null clear ref form
take default value into account by selectboxes
don't set auto incr fields
check only contact emails<F11><F12>
type missmatch
cosmetic, some renamings, debug modified