tried to work on some db stuff but theres weird thigns happening so im saving my work here
fixed problem of multiple firing of sign in success -- my problem was because my socket.on is inside my click handler http://stackoverflow.com/questions/17057455/socket-io-firing-multiple-events
restructured so callback works. Removed an unnecessary socket exchange. did a lot of pointless keyboard-bashing with getting the SQL to work.