MySQL Added. Bug fixes and less debug