PHP class for writing to log and/or printing to screen SQL queries