Sort of a separation into files and added MySql method (not implemented)