Implement log's constructor and $result attribute for store the result of the SQL query