added some more untested instructions
changed index to use data from mysql for the websocket, looks more secure
debugged index and added output to create tables