title: What type of class to use
body: <p>I am not too familiar with classes and stuff so I am asking for some simple help here.. I've got a lot of database functions which I use a lot so I thought I'd put this into a class which I can call from other classes which require data from the database.</p>
  
  <p>For example I've got a window that outputs a list of people, I've got the same code in the edit person window and I am repeating the same code for both of them.</p>
  
  <p>What class to a I use ? I am very confused. I've implemented it as a static class but I wasn't sure if it was working correctly.</p>
  
  <p>If someone could just give a simple primer on what classes are which I would very much appreciate it.</p>
  
  <p>Thanks</p>