Use qualified example name as database prefix
record last event time in database metadata
tidy up tests