converted parse script to mysql
converted parse script to mysql