Moving MySQL into new class