Splitted the main up into smaller classes
My MYSQL method