Added MySQL table creation and conditional MySQL creation. Comments added.