Add db api function to get the latest run

This commit adds a new db api method to get the latest run added to
the db.

Change-Id: I0fb79a26fdd66aa029aab5b6fed5900cba9cd4cc
Merge "Add db api function to get the latest run"