A simple database class that uses mysql.connector module.