DEBUG

Fixed loads of bugs, moved some files around.

Fixed some security issues in the MySQL connector