[development] Improve multiple database handling