updated db automatic selection