add mysql connection and query launch code
clean up application sources