added function fixed mysql (for the most part)....
added function fixed mysql (for the most part)....

Lotta updates made sending into a function added a couple comments while alex played 2048
jakesyl/twillapply,jakesyl/twillapply,jakesyl/twillapply