Now retrieves data from MySQL log table