How to write a database class in python? [on hold]

I’m a database beginner and I want to know how to turn my “database code” into a real python class. Because I have a little bit of experience in OOP I’m actually not feeling very well calling that my database and sadly I do not now how to approach this problem. Literature on that topic would be appreciated to get my mind around databases and database design.

import pymysql as PyMySQLdb  conn = PyMySQLdb.connect('localhost', 'schema', 'superdupersecretpassword', 'fvt') db = conn.cursor(PyMySQLdb.cursors.Cursor)