SQl Updates

Added SQL references, function shells, comments where processing should
be