changed date to MySQL date format, added supported for passing in data url.