refactor parser & add mysql