code sample in mysql functions added