add mysql function, baby step.