updated db configuration, now automatic selection