add mysql_date and passport function