fixed plotting bug
fixed mysql url
Up to date code for review