Doc environment variables 593

fixes #593 
fixes #460 
I don't know MySQL that well but isn't there a simpler table definition statement we could use? Do we need primary key? Do we need to specify "ENGINE"?