Easily generate SQL log triggers with PHP