Working MySQL code

Well Documented