If there's no latest time to sync from, choose the latest from the database