Not bad but just a few things I noticed. I will assume this is GRPG??? If it is, I’m not in tune with it too much but last I checked, did they have a database class or was it straight procedural? This does look like it could be MTG’s PDO class. Also in your Message function, is that a default constant that is being used or is that an added feature as well?