add logging to mysql class