fix all_dbs to report current databases instead of ones cached on first run, make database name glob configurable