Added MYSQL functions