Added new mysql functions