Updated code to retrieve data from mysql db in both php and js files, also updated mysql format document