Use correct tables in log retrieval

Signed-off-by: Julien Danjou <julien@danjou.info>