db: return latest version in absence of version