Added multi-database support for status command