Adds multi-database support.