Add support of multiple dbs