title: Write a database class in python
body: <p>For a hobby project I'm doing at the moment I want to write an object oriented python program.But one of the first issue I'm running into is creating a class for my (MySQL) database. </p>
  
  <p>I am trying to use as few packages as possible and I want to try to write the database class by using only pymysql.The problem is that there is an overwhelming amount of libraries and a lack of explanation on writing a good database class in python.</p>
  
  <p>Any suggestions and especially examples would be much appreciated </p>