Generic PHP class for handling MySQL Queries and Results