Adding Mysql functions