Added mySQL functionality