Added mysql function part 2 (online guide was wrong)