Better strategy for finding default db