add new sql class, and mysql functionality