mysql functions updated with examples