MySQL Functions for Front-End Ajax.

This is a beta version.