PHP Class to abstract SQL query construction in a flexible and portable way